using System;
using System.Collections.Generic;
using Sfd.Entities;

namespace Sfd.Repositories
{
    public interface IProjectRepository
    {
        bool IsOnAzure { get; set; }
        int PublishProject(AzureSyncProject project);
        int IsPublished(Guid projectId);
        int Unpublish(Guid projectId);

        int AddUserInProject(Guid userId, Guid projectId);
        int RemoveAllUsersFromProject(Guid projectId);
        int RemoveUserFromProject(Guid userId, Guid projectId);
        int IsUserInProject(Guid userId, Guid projectId);
        IEnumerable<AzureSyncProject> GetUserProjects(Guid userId);
        IEnumerable<AzureSyncProject> LoadAll();
        AzureSyncProject LoadById(Guid projectId);
    }
}